package com.liuguang.testassert.filter;

import com.liuguang.testassert.security.UserDetailServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.apache.tomcat.websocket.server.WsFilter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
import org.springframework.web.filter.OncePerRequestFilter;

import javax.servlet.FilterChain;
import javax.servlet.GenericFilter;
import javax.servlet.ServletException;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 * @ClassName: TestFilter1
 * @Description：
 * @Author: wanghr
 * Date: 10:18 AM 2020/6/9
 * Version: 1.0
 */
@Slf4j
//@WebFilter(urlPatterns = "/*")
public class TestFilter1 extends OncePerRequestFilter {

    @Override
    protected void doFilterInternal(HttpServletRequest request, HttpServletResponse response, FilterChain filterChain) throws ServletException, IOException {
        log.info("ssssaasdf");
        filterChain.doFilter(request,response);
    }
}
